package com.jinbm.accountservice.entity.po;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

/**
 * 系统用户 实体类。
 *
 * @author jinbm
 * @data 2024/4/8
 * @time 9:47
 * @since JDK1.8
 * @version 0.0.1-SNAPSHOT
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "系统用户")
@Table(value = "sys_user")
public class UserPo {

    @Schema(description = "")
    @Id(keyType = KeyType.Auto)
    private Long userId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    @Column(value = "username")
    private String username;

    @Schema(description = "")
    @Column(value = "img_path")
    private String imgPath;

    /**
     * 密码
     */
    @Schema(description = "密码")
    @Column(value = "password")
    private String password;

    /**
     * 盐
     */
    @Schema(description = "盐")
    @Column(value = "salt")
    private String salt;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @Column(value = "email")
    private String email;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    @Column(value = "mobile")
    private String mobile;

    /**
     * 0：管理员 1：前台用户
     */
    @Schema(description = "0：管理员 1：前台用户")
    @Column(value = "type")
    private Integer type;

    /**
     * 状态  0：禁用   1：正常
     */
    @Schema(description = "状态  0：禁用   1：正常")
    @Column(value = "status")
    private Integer status;

    /**
     * 部门ID
     */
    @Schema(description = "部门ID")
    @Column(value = "dept_id")
    private Long deptId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Column(value = "create_time")
    private java.util.Date createTime;


}
